// ******************************************************************
// * Copyright(c)  Dextrys P&G Team
// * Description   : Schema_FIN_CUSTOMER_ACCOUNT_ITEM
// * CreateDate    : 2012/11/1 9:40:06
// * Creater       : FinCustomerAccountItemTable
// * LastChangeDate: 2012/11/1 9:40:06
// * LastChanger   : 2012/11/1 9:40:06
// * Version Info  : 1.0 For LKBOOK
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class FinCustomerAccountItemTable : TableInfo
    {
        public const string C_TableName = "FIN_CUSTOMER_ACCOUNT_ITEM";

        public const string C_CUSTOMER_ACCOUNT_ITEM_ID = "CUSTOMER_ACCOUNT_ITEM_ID";
        public const string C_CUSTOMER_ID = "CUSTOMER_ID";
        public const string C_AMOUNT_DATE = "AMOUNT_DATE";
        public const string C_AMOUNT_PERSON = "AMOUNT_PERSON";
        public const string C_SALES_ORDER_AMOUNT = "SALES_ORDER_AMOUNT";
        public const string C_BILLING_AMOUNT = "BILLING_AMOUNT";
        public const string C_RECEIVED_AMOUNT = "RECEIVED_AMOUNT";
        public const string C_RECEIVABLE_AMOUNT = "RECEIVABLE_AMOUNT";
        public const string C_DELIVERY_AMOUNT_NO_BILLING = "DELIVERY_AMOUNT_NO_BILLING";
        public const string C_DELIVERY_AMOUNT_BILLED = "DELIVERY_AMOUNT_BILLED";
        public const string C_SALES_AMOUNT = "SALES_AMOUNT";
        public const string C_RELATED_ORDER_ID = "RELATED_ORDER_ID";
        public const string C_RELATED_ORDER_CODE = "RELATED_ORDER_CODE";
        public const string C_APPLICATION_ID = "APPLICATION_ID";

        public FinCustomerAccountItemTable()
        {
            _tableName = "FIN_CUSTOMER_ACCOUNT_ITEM";
        }

        protected static FinCustomerAccountItemTable _current;
        public static FinCustomerAccountItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new FinCustomerAccountItemTable();

            _current.Add(C_CUSTOMER_ACCOUNT_ITEM_ID, new ColumnInfo(C_CUSTOMER_ACCOUNT_ITEM_ID, "CustomerAccountItemId", true, typeof(string)));
            _current.Add(C_CUSTOMER_ID, new ColumnInfo(C_CUSTOMER_ID, "CustomerId", false, typeof(string)));
            _current.Add(C_AMOUNT_DATE, new ColumnInfo(C_AMOUNT_DATE, "AmountDate", false, typeof(DateTime)));
            _current.Add(C_AMOUNT_PERSON, new ColumnInfo(C_AMOUNT_PERSON, "AmountPerson", false, typeof(string)));
            _current.Add(C_SALES_ORDER_AMOUNT, new ColumnInfo(C_SALES_ORDER_AMOUNT, "SalesOrderAmount", false, typeof(decimal)));
            _current.Add(C_BILLING_AMOUNT, new ColumnInfo(C_BILLING_AMOUNT, "BillingAmount", false, typeof(decimal)));
            _current.Add(C_RECEIVED_AMOUNT, new ColumnInfo(C_RECEIVED_AMOUNT, "ReceivedAmount", false, typeof(decimal)));
            _current.Add(C_RECEIVABLE_AMOUNT, new ColumnInfo(C_RECEIVABLE_AMOUNT, "ReceivableAmount", false, typeof(decimal)));
            _current.Add(C_DELIVERY_AMOUNT_NO_BILLING, new ColumnInfo(C_DELIVERY_AMOUNT_NO_BILLING, "DeliveryAmountNoBilling", false, typeof(decimal)));
            _current.Add(C_DELIVERY_AMOUNT_BILLED, new ColumnInfo(C_DELIVERY_AMOUNT_BILLED, "DeliveryAmountBilled", false, typeof(decimal)));
            _current.Add(C_SALES_AMOUNT, new ColumnInfo(C_SALES_AMOUNT, "SalesAmount", false, typeof(decimal)));
            _current.Add(C_RELATED_ORDER_ID, new ColumnInfo(C_RELATED_ORDER_ID, "RelatedOrderId", false, typeof(string)));
            _current.Add(C_RELATED_ORDER_CODE, new ColumnInfo(C_RELATED_ORDER_CODE, "RelatedOrderCode", false, typeof(string)));
            _current.Add(C_APPLICATION_ID, new ColumnInfo(C_APPLICATION_ID, "ApplicationId", false, typeof(string)));

        }

        public ColumnInfo CUSTOMER_ACCOUNT_ITEM_ID
        {
            get { return this[C_CUSTOMER_ACCOUNT_ITEM_ID]; }
        }

        public ColumnInfo CUSTOMER_ID
        {
            get { return this[C_CUSTOMER_ID]; }
        }

        public ColumnInfo AMOUNT_DATE
        {
            get { return this[C_AMOUNT_DATE]; }
        }

        public ColumnInfo AMOUNT_PERSON
        {
            get { return this[C_AMOUNT_PERSON]; }
        }

        public ColumnInfo SALES_ORDER_AMOUNT
        {
            get { return this[C_SALES_ORDER_AMOUNT]; }
        }

        public ColumnInfo BILLING_AMOUNT
        {
            get { return this[C_BILLING_AMOUNT]; }
        }

        public ColumnInfo RECEIVED_AMOUNT
        {
            get { return this[C_RECEIVED_AMOUNT]; }
        }

        public ColumnInfo RECEIVABLE_AMOUNT
        {
            get { return this[C_RECEIVABLE_AMOUNT]; }
        }

        public ColumnInfo DELIVERY_AMOUNT_NO_BILLING
        {
            get { return this[C_DELIVERY_AMOUNT_NO_BILLING]; }
        }

        public ColumnInfo DELIVERY_AMOUNT_BILLED
        {
            get { return this[C_DELIVERY_AMOUNT_BILLED]; }
        }

        public ColumnInfo SALES_AMOUNT
        {
            get { return this[C_SALES_AMOUNT]; }
        }

        public ColumnInfo RELATED_ORDER_ID
        {
            get { return this[C_RELATED_ORDER_ID]; }
        }

        public ColumnInfo RELATED_ORDER_CODE
        {
            get { return this[C_RELATED_ORDER_CODE]; }
        }

        public ColumnInfo APPLICATION_ID
        {
            get { return this[C_APPLICATION_ID]; }
        }



    }
}

